package ai.mspbots.service.users.controller;

import ai.mspbots.service.users.entity.UsersEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/users")
public class UsersController {

    @GetMapping("/{id}")
    @ResponseBody
    public UsersEntity getReport(@PathVariable("id")Long id) {
        return UsersEntity.of(id);
    }

}
